<?php
/**
 * Created by PhpStorm.
 * User: zg
 * Date: 18-8-8
 * Time: 上午10:38
 */

namespace app\index\controller;
use think\Db;

class Question extends Base
{
    public function qlist()
    {
        return $this->fetch();
    }

    public function qdesc()
    {
        $data = Db::name('questionitems')->where('id',input('get.id'))->find();
        $this->assign('que',$data);
        return $this->fetch();
    }
}